import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import 'vant/lib/index.css'
import Vant from 'vant'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import VueLazyloadNext from 'vue-lazyload-next'
const pinia = createPinia()
const loadimage = require('./assets/loading.gif')
const errorimage = require('./assets/error.png')
createApp(App).use(router).use(Vant).use(pinia.use(piniaPluginPersistedstate)).use(
    VueLazyloadNext,
    {
        preLoad: 1.3,
        error: errorimage,
        loading: loadimage,
        attempt: 1
    }
).mount('#app')
